home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n12 / batch2.exe / GOTOLTR.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-10-12  |  332 b   |  20 lines

  1. @ECHO OFF
  2. REM This is GOTOLTR.BAT
  3. IF %1!==! GOTO OOPS
  4. FOR %%A IN (A a B b C c) DO IF %1==%%A GOTO OKAY
  5. GOTO OOPS
  6. :OKAY
  7. GOTO LABEL%1
  8. :LABELA
  9. ECHO You entered A or a
  10. GOTO END
  11. :LABELB
  12. ECHO You entered B or b
  13. GOTO END
  14. :LABELC
  15. ECHO You entered C or c
  16. GOTO END
  17. :OOPS
  18. ECHO Enter %0 and then A, B, or C (or a, b, c)
  19. :END
  20.